package com.school.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.github.pagehelper.PageHelper;
import com.school.mapper.AttendanMapper;
import com.school.pojo.Attendance;
import com.school.service.AttendanService;

@Service
@Transactional
public class AttendanServiceImpl implements AttendanService{
	
	@Autowired
	private AttendanMapper attendanMapper;
	
	@Override
	public List<Attendance> findAll(int page, int pageSize, Attendance t) {
		PageHelper.startPage(page,pageSize);
		return attendanMapper.findAll(t);
	}

	@Override
	public List<Attendance> findbyId(int id) {
		
		return attendanMapper.findbyId(id);
	}

}
